package by.grsu.hdm.devices;

import by.grsu.hdm.model.IDevice;
import by.grsu.hdm.model.IFileSystem;
import by.grsu.hdm.model.IUsbPort;
import by.grsu.hdm.model.IUsbSupport;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class UsbFlashDrive implements IDevice, IUsbSupport, IFileSystem {
	private static final List<String> TEST_FILES_LIST = Arrays.asList("Deep Purple - Smoke on The Water.mp3", "AC/DC - Back in Black.ogg", "Fight Club.avi", "Johny Cash - Golden Heart.mp3");
	
	private String id;
	private List<String> filesList = new ArrayList<String>();
	
	protected UsbFlashDrive() {}
	
	public UsbFlashDrive(String id) {
		this.id = id;
		
		//TEST: this is the _test_ initialization of List<String> files 
		filesList = TEST_FILES_LIST; 
	}

	@Override
	public IUsbPort getUsbPort() {
		return null;
	}

	@Override
	public String getDeviceId() {
		return this.id;
	}

	@Override
	public List<String> getFilesList() {
		return filesList;
	}
}
